﻿
@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model YTCMS.Domain.Entities.guide
<link href="/Content/ytcms/css/guide_details.css" rel="stylesheet" />
<div class="jumbotron wrapper">
    <div class="container ">
        <div class="main">
            <div class="header">
                <div class="row header_title">
                    <div class="img">
                        <img src="/Content/ytcms/img/area.png">
                    </div>
                    <div class="title_wapper">
                        <div class="title">
                            @Model.Title
                        </div>
                        <div>
                            <span class="uname">@Model.User</span>
                            <span>@Model.PushTime.ToString("yyyy-MM-dd HH:mm:ss")</span>
                            <span><img src="/Content/ytcms/img/eye.png">@Model.Tags</span>
                        </div>
                        
                    </div>
                    <div class="title_push">
                        <img src="/Content/ytcms/img/guide/5.png" class="margin-top-40" />
                    </div>
                </div>
                <div class="title_wapper_info">
                    <ol>
                        <li>
                            <img src="/Content/ytcms/img/guide/1.png" />
                            <span>
                                出发日期：@Model.StartTime.ToString("yyyy-MM-dd")
                            </span>
                        </li>
                        <li>
                            <img src="/Content/ytcms/img/guide/2.png" />
                            <span>
                                出行天数：@Model.Day
                            </span>
                        </li>
                        <li>

                            <img src="/Content/ytcms/img/guide/3.png" />
                            <span>
                                人物：@Model.Object
                            </span>
                        </li>
                        <li>
                            <img src="/Content/ytcms/img/guide/4.png" />
                            <span>
                                人均费用：@Model.Money
                            </span>
                        </li>
                    </ol>
                </div>
            </div>
            <div class="body">
                <div class="left">
                    @Html.Raw(Model.Remark)
                </div>
                <div class="right">
                    <img src="/Content/ytcms/img/guide/7.png" />
                    
                    @{
                        IQueryable<YTCMS.Domain.Entities.guide> e = ViewData["elseguide"] as IQueryable<YTCMS.Domain.Entities.guide>;
                        if (e!= null)
                        {
                            foreach (var item in e)
                            {
                                @*<div class="else">
                                    <img src="/Content/ytcms/img/guide/6.png" />
                                    <div>
                                        <div class="title">qqqqqqqqqqqqqqqq</div>
                                        <div style="margin-top: 10px; font-size: 14px; ">
                                            <span style="display:block;float: left;width: 50%;">张三丰</span>
                                            <span style="display: block; float: left; width: 50%; text-align: right">2016-1-1</span>
                                        </div>
                                    </div>
                                </div>*@
                                <div class="else">
                                    <a href="/Guide/details?id=@item.Id"><img src="@item.Images.Replace("_120x120","")" /></a> 
                                    <div>
                                        <div class="title"><a href="/Guide/details?id=@item.Id"> @item.Title</a> </div>
                                        <div style="margin-top: 10px; font-size: 14px; ">
                                            <span style="display:block;float: left;width: 50%;">@item.User</span>
                                            <span style="display: block; float: left; width: 50%; text-align: right">@item.StartTime</span>
                                        </div>
                                    </div>
                                </div>
                            }
                        }
                    }
                    

                </div>
            </div>
        </div>
    </div>
</div>


